<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html style="min-height: 462px;">
    <head>
        <link href="<c:url value='/style/admin.css'/>" type="text/css" rel="stylesheet">
    </head>
    <body class="bg-black" style="min-height: 462px;">
        <div class="form-box">
            <div class="header">Authentification</div>
            <form action="<c:url value='/admin'/>" method="POST">
                <div class="body bg-gray">
                    <c:if test="${error!=null}">
                    <div class="alert alert-danger alert-error">${error}</div>
                    </c:if>
                    <div class="form-group control-group">
                        <input class="form-control" type="text" placeholder="Username" required="required" name="login" value="${login}"/>
                    </div>
                    <div class="form-group control-group">
                        <input class="form-control" type="password" placeholder="Password" required="required" name="pass"/>
                    </div>
                </div>
                <div class="footer">
                    <button class="btn bg-blue btn-block" name="_submit" id="_submit" type="submit">Connexion</button>
                </div>
            </form>
        </div>
    </body>                   
</html>